//
//  VM.h
//  corruptEatSerpent
//
//  Created by HYC on 2022/12/5.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "HYCEatSerpent.h"

@class HYCEatSerpent_eveModel;
@class eveView;


NS_ASSUME_NONNULL_BEGIN

@interface HYCEatSerpent_VM : NSObject

@property (nonatomic,assign)BOOL isCrazyMode;

@property (nonatomic,assign)HYC_EatSerpent_runingType runingType;
//当前前进方向
@property (nonatomic,assign)HYC_direction_TYPE fangxiang;

//死了已经 , 弹窗block
@property (nonatomic, copy) void (^openToast)(NSInteger foods);

//吃食物的block
@property (nonatomic, copy) void (^haveFood)(NSInteger foodNumber);

//双击事件block
@property (nonatomic, copy) void (^touchTwo)(BOOL isRuned);

//食物的个数
@property (nonatomic,assign)NSInteger foodNumber;

//跑的速度
@property (nonatomic,assign)CGFloat runSpeed;

//单例
+ (HYCEatSerpent_VM *)sharedManager;

//添加数据,开始跑起来
- runing:(NSMutableArray <HYCEatSerpent_eveModel *>*)selfArr WithBgArr:(NSMutableArray <NSMutableArray <eveView *>*>*)bgArr;

// 校验是否死亡 , true死亡 , false未死亡
+ (BOOL)verify_isDie:(HYCEatSerpent_eveModel *)model;

//添加轻扫手势
- (void)addGestSwipe:(UIView *)swipeView;

//添加长摁加速功能
- (void)addGestLongTouch:(UIView *)longTouchView;

//生成随机点坐标
- addFoodWithAllModels:(NSMutableArray <NSMutableArray <HYCEatSerpent_eveModel *>*>*)allModels;

//切换暂停状态
- touchT;

@end

NS_ASSUME_NONNULL_END
